<?php
require_once($_SERVER['DOCUMENT_ROOT']."/jeng/jeng.php");

ptaste();

class AdminIndex extends JEngAuthPage
{
	function __construct()
	{
		parent::__construct();
		if (isset($_GET['logout']))
		{
		  $this->logout();
		  header("Location: ".$this->conf()->get('site_host')."/");
		  die("that's all, folks !!!");
		}
	}
	
	function getBodyXml()
	{
	  $obj=$this->emptyXML("body");
	  $frm=$this->utils()->xmlHelper()->appendNode($obj->documentElement,"div");
	  $this->utils()->xmlHelper()->appendAttribute($frm,"id","xdata");
	  $this->utils()->xmlHelper()->appendAttribute($frm,"class","xdata");
	  $frm=$this->utils()->xmlHelper()->appendNode($obj->documentElement,"div");
	  $this->utils()->xmlHelper()->appendAttribute($frm,"id","apartment");
	  $this->utils()->xmlHelper()->appendAttribute($frm,"class","apartment");
	  return $obj;
	}
}

$page=new AdminIndex();
printf("%s",$page->render());

?>